<template>
  <div class="title">
    <div class="l">
      <img :src="imgSrc" alt="" />
      <h2>{{ titles }}</h2>
    </div>
    <div class="r" v-show="titles != '积分攻略'">
      更多
      <span><img src="../../assets/img/arrow.png" alt="" /></span>
    </div>
  </div>
</template>

<script>
export default {
  props: ["titles", "imgSrc"],
};
</script>

<style lang="less" scoped>
.title {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 20px;
  align-items: center;
  .l {
    display: flex;
    align-items: center;
    h2 {
      margin-left: 10px;
      font-size: 30px;
      font-family: SourceHanSansSC;
      font-weight: bold;
      color: #242b39;
    }
  }
  .r {
    display: flex;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    span {
      margin-left: 6px;
    }
  }
}
</style>